Class GenericMultiHeader

Summary

Fully Qualified Name: Laminas\Mail\Header\GenericMultiHeader
Extends: GenericHeader
Implements: MultipleHeadersInterface

Description

Generic class for Headers with multiple occurs in the same message

Methods

Name Description Defined By
__construct() Constructor GenericHeader
fromString() GenericMultiHeader
getEncoding() GenericHeader
getFieldName() GenericHeader
getFieldValue() GenericHeader
setEncoding() GenericHeader
setFieldName() GenericHeader
setFieldValue() GenericHeader
splitHeaderLine() Splits the header line in `name` and `value` parts. GenericHeader
toString() GenericHeader
toStringMultipleHeaders() Cast multiple header objects to a single string header GenericMultiHeader

Method Details

__construct()

Constructor

Parameter Name Type Description
$fieldName string Optional
$fieldValue string Optional

Returns:

fromString()

Parameter Name Type Description
$headerLine

Returns: void

getEncoding()

Returns: void

getFieldName()

Returns: void

getFieldValue()

Parameter Name Type Description
$format

Returns: void

setEncoding()

Parameter Name Type Description
$encoding

Returns: void

setFieldName()

Parameter Name Type Description
$fieldName

Returns: void

setFieldValue()

Parameter Name Type Description
$fieldValue

Returns: void

splitHeaderLine()

Splits the header line in `name` and `value` parts.

Parameter Name Type Description
$headerLine string

Returns: string[] `name` in the first index and `value` in the second.

toString()

Returns: void

toStringMultipleHeaders()

Cast multiple header objects to a single string header

Parameter Name Type Description
$headers array

Returns: string

Top